package com.dyw.ycgovfinance.mvp.news.newslist;

import com.dyw.ycgovfinance.bean.NewsListBean;
import com.dyw.ycgovfinance.mvp.base.BasePresenter;
import com.dyw.ycgovfinance.mvp.base.BaseView;

import java.util.List;

/**
 * Created by Administrator on 2017/6/20.
 */

public class NewsListContract {

    public interface View extends BaseView<Presenter> {

        void getNewsList();

        void onGetNewsListSuccess( List<NewsListBean> newsList);

        void onGetNewsListError(String tip);

        void getNewsBanner();

        void onGetNewsBannerSuccess(List<NewsListBean> newsList);

        void onGetNewsBannerError(String tip);
    }

    public interface Presenter extends BasePresenter
    {
        /*"currentPage":"",
                "numPerPage":"",
                "ttype":"",
                "tclass":"",*/

        /**
         * 获取新闻列表
         * @param pageIndex
         * @param pageSize
         * @param newsKindParentTag 新闻类型父标识
         * @param newsKindSonTag    新闻类型子标识
         */
        void getNewsList(String pageIndex,String pageSize,String newsKindParentTag,String newsKindSonTag);

        /**
         * 获取banner图片新闻
         */
        void getNewsBanner(String pageIndex,String pageSize,String newsKindParentTag,String newsKindSonTag);

    }
}
